﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SARUserControls
{
    /// <summary>
    /// 普通文本标签
    /// </summary>
    public partial class SAR_TextLabel : UserControl
    {
        public SAR_TextLabel()
        {
            InitializeComponent();
        }

        private string sarWindowsTxt;

        /// <summary>
        /// 标签内容
        /// </summary>
        public string SARWindowsTxt
        {
            get
            {
                sarWindowsTxt = this.SAR_TextLabelField.Text;
                return sarWindowsTxt;
            }
            set
            {
                sarWindowsTxt = value;
                this.SAR_TextLabelField.Text = sarWindowsTxt;
            }
        }

        /// <summary>
        /// 标签字体大小
        /// </summary>
        public double SARFontSize
        {
            get
            {
                return SAR_TextLabelField.FontSize;
            }
            set
            {
                this.SAR_TextLabelField.FontSize = value;
            }
        }

        /// <summary>
        /// 标签字体颜色
        /// </summary>
        public Brush SARTextColor
        {
            set
            {
                this.SAR_TextLabelField.Foreground = value;
            }
            get
            {
                return this.SAR_TextLabelField.Foreground;
            }
        }
    }
}
